import { createAction } from 'redux-actions';
import * as types from '../constants/ActionTypes';
import * as Api from '../utils/WebAPIUtils.js';
import Tool from '../utils/ToolUtils.js';

const getOtherLogAction = createAction(types.FETCH_OPERATE_OTHER_LOG, data => data);

exports.fetchOtherLogList = (data) => (dispath) =>
  Tool.post(Api.operateOtherLog.query, data, (res) => {
    dispath(getOtherLogAction(res));
  });
